//
//  TestProblem506.swift
//  LeetCodeTests
//
//  Created by 武侠 on 2023/6/21.
//  Copyright © 2023 zhulongiMac02. All rights reserved.
//

import XCTest
@testable import LeetCode

final class TestProblem506: XCTestCase {

    var problem = Problem506()
    
    override func setUp() {
        super.setUp()
        // Put setup code here. This method is called before the invocation of each test method in the class.
    }
    
    override func tearDown() {
        // Put teardown code here. This method is called after the invocation of each test method in the class.
        super.tearDown()
    }
    
    // MARK: - 排序
    func testProblem506_Case1() throws {
        XCTAssertEqual(problem.findRelativeRanks([5,4,3,2,1]), ["Gold Medal","Silver Medal","Bronze Medal","4","5"])
    }
    
    func testProblem506_Case2() throws {
        XCTAssertEqual(problem.findRelativeRanks([10,3,8,9,4]), ["Gold Medal","5","Bronze Medal","Silver Medal","4"])
    }
    
    func testProblem506_Case3() throws {
        XCTAssertEqual(problem.findRelativeRanks([10,3]), ["Gold Medal","Silver Medal"])
    }
    
    func testProblem506_Case4() throws {
        XCTAssertEqual(problem.findRelativeRanks([]), [])
    }

}
